package com.hu.bgp.client.widgets.uicomponents;

import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.hu.bgp.shared.data.ClientGameSession;
import com.hu.bgp.shared.data.ClientGameType;

public class GameSessionTable extends SelectionTable<ClientGameSession>
{
	public GameSessionTable()
	{
	}

	public Label[] createHeader()
	{
		return new Label[]
		{
			new Label("Game ID"), new Label("Name!")
		};
	}

	public Widget[] createRow(ClientGameSession gameType)
	{
		return new Widget[]
		{
			new Label(gameType.getGameID()), new Label(gameType.getGameName())
		};
	}
}
